package net.tycmc.cty.ctyms.timejob.iems.job;

import java.util.Map;

import org.apache.commons.configuration.ConfigurationException;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import net.tycmc.cty.ctyms.timejob.common.DateControl;
import net.tycmc.cty.ctyms.timejob.iems.service.VclRoadInfoService;


public class VclRoadInfoJob extends QuartzJobBean {

	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException{
		String start = DateControl.getDateTime(0);
		System.out.println("-----道路信息统计结束------执行时间："+start);
		Map<?, ?> datamap = arg0.getJobDetail().getJobDataMap();
		VclRoadInfoService  vclRoadInfoService = (VclRoadInfoService)datamap.get("vclRoadInfoService");
		//vclRoadInfoService.startExcuRoad();
		vclRoadInfoService.runRoadExecutorService(null);
		
		System.out.println("-----道路信息统计结束------执行时间："+DateControl.getMiaoShu(start,DateControl.getDateTime(0)));
	}
	
}
